<template>
    <div class="beiJing">
        <el-container style="height:100%;" direction="vertical">
            <!-- <el-header id="banBenHead">
                <img class="bbIcon" src="../../assets/img/mine/back.png" @click="backsz">
                <span class="bbHead">版本更新</span>
            </el-header> -->
            <el-header id="banBenHead">
                <el-row type="flex" style="height:80%;display:flex;align-items: flex-end">
                    <el-col :xs="2" :sm="2" :md="2" :offset="1" class="imgCol">
                        <img v-bind:src="backIcon" class="backSize" @click="back" />
                    </el-col>
                    <el-col :xs="6" :sm="6" :md="6" :offset="6" class="imgCol">
                        <span class="titleSize">版本更新</span>
                    </el-col>
                </el-row>
            </el-header>
            <el-main id="banBenMain">
                <el-row type="flex">
                    <el-col class="banBenIcon">
                    <img src="../../assets/img/mine/banBenIcon.png" style="margin:60px;">
                    </el-col>
                </el-row>
                <el-row class="xinXi">
                    <div style="font-size:18px;">{{banBenHao}}</div>
                    <br>
                    <div>{{message}}</div>
                </el-row>
                <el-row class="mainBottom">
                    <!-- <img style="width:100%;" src="../../assets/img/mine/banBenFoot.png"> -->
                </el-row>
            </el-main>
            <el-footer id="banBenFoot">
                <el-row class="gongSi">
                    杭州润实互联网科技有限公司
                </el-row>
            </el-footer>
        </el-container>
    </div>
</template>

<script>
import backIcon from '../../assets/img/mine/back.png'
export default {
   data(){
       return{
           backIcon:backIcon,
           banBenHao:"V1.1.1",
           message:"当前已是最新版本",
           normalHeight:document.documentElement.clientHeight,
       }
    },
    mounted(){
        var head=document.getElementById("banBenHead");
        var headHeight=this.normalHeight/30 *3 ;
        console.log("headHeight:"+headHeight);
        head.style.height=headHeight+"px";

        var main=document.getElementById("banBenMain");
        var mainHeight=this.normalHeight/30 *24 ;
        main.style.height=mainHeight+"px";

        var foot=document.getElementById("banBenFoot");
        var footHeight=this.normalHeight/30 *3 ;
        foot.style.height=footHeight+"px";
    },
    methods:{
        back(){
            console.log("back:");
            this.$router.go(-1);
        },
    }

}
</script>

<style>
.backSize{
    height: 26px;
}
.titleSize{
    font-size:1.125em;
    color:#ffffff
}
@media screen and (max-height: 600px){
  .backSize{
      height: 22px;
  }
  .titleSize{
      font-size: 1em;
  }
}
.gongSi{
    color: #707070;
    text-align: center;
    position: relative;
    top:30%;
}
.xinXi{
    color:#FFFFFF;
    text-align: center;
}
.banBenIcon{
    display:flex;
    align-items:center;
    justify-content:center;
}
.beiJing{  
    height:100%;
}
.bbIcon{
    position: relative;
    top:40%;
    float:left;
    width:30px;
    height:30px;
}
.bbHead{
    position: relative;
    top:15%;
    right: 8px;
    font-size: 20px;
}
.el-container{  
    padding: 0px; 
}
#banBenFoot{
    height: 10%;
    background-color: #FFFFFF;
}
#banBenMain{
    background-color: #8ddbf8;
}

#banBenHead{
    background: url(../../assets/img/mine/banBenHead.png) no-repeat;
    /**相应图片按比例伸缩*/
    background-size: 100%;
    /**设置当前背景页面固定*/
    background-attachment: fixed;
    text-align: center;
    width: 100%;
    color:#FFFFFF;
}

</style>